package dao

import (
	"oidc/model"
	"strconv"
)

type UserInfoRes struct {
	UserID   int    `json:"user_id"`
	UserName string `json:"user_name"`
	PhoneNum int    `json:"phone_num"`
	Email    string `json:"email"`
	Image    string `json:"image"`
}

func GetUser(id string) model.UserInfo {
	for _, val := range UserMap {
		if strconv.Itoa(val.Identifier) == id {
			return val
		}
	}
	return model.UserInfo{}
}
